package mobi.zeedev.flyingsaucer.common.WebQueryModule.modules;

import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import mobi.zeedev.flyingsaucer.common.WebQueryModule.impl.ContinuousBeerWebQuery;
import mobi.zeedev.flyingsaucer.common.WebQueryModule.interfaces.IBeerWebQuery;

/**
 * User: James
 * Date: 1/4/11
 * Time: 3:48 AM
 */
public class BeerWebQueryModule extends AbstractModule {


    @Override
    protected void configure() {

//        install(new CredentialsModule());

//        bind(IBeerWebQuery.class).to(SingleBeerWebQuery.class);
        bind(IBeerWebQuery.class).to(ContinuousBeerWebQuery.class);
        bindConstant().annotatedWith(Names.named("PRINT_DEBUG_STATEMENTS")).to(false);

    }

//    @Provides
//    @Named("cookieList")
//    List<Cookie> providesCredentialsCookieList(Credentials credentials) {
//        if (credentials.isLoggedIn()) {
//            return credentials.generateCookieInfo();
//        } else {
//            return null;
//        }
//    }


}
